﻿Ext.define('Happy.cms.contact.metadata.Metadata', {
    extend: 'Happy.metadata.Metadata',
    singleton: true,

    constructor: function () {
        var me = this;

        me.data = {
            namespace: 'Happy.cms',
            name: 'Contact',
            plural: 'Contacts',
            urlPrefix: 'Happy/Cms',
            displayName: '联系信息',
            summaryProperty: 'Name',
            properties: {
                Id: {
                    name: 'Id',
                    dataType: "Guid"
                },
                OptimisticKey: {
                    name: 'OptimisticKey',
                    dataType: "String"
                },
                Name: {
                    name: 'Name',
                    dataType: "String"
                },
                Address: {
                    name: 'Address',
                    dataType: "String"
                },
                Email: {
                    name: 'Email',
                    dataType: "String"
                },
                Comments: {
                    name: 'Comments',
                    dataType: "String"
                }
            }
        };

        me.callParent(arguments);
    }
});